import service from '@/utils/request'

const PromoteModelApi = {
  // ----------------推广规则-----------------
  listPromoteModel:function(data){
    return service.get('promoteModel/page', {params:data})
  },
  addPromoteModel:function(data){
    return service.post('promoteModel', data)
  },
  editPromoteModel:function(data){
    return service.put('promoteModel', data)
  },
  updatePromoteModelState:function(data){
    return service.put('promoteModel/updatePromoteModelState', data)
  },
  deletePromoteModel:function(data){
    return service.put('promoteModel/delete', data)
  },
  promoteModelList(data){
    return service.get('promoteModel/listIdName', {params:data})
  },
  getPromoteModel(data){
    return service.get('promoteModel', {params:data})
  },
  setRelation(data){
    return service.post('promoteModel/setRelation', data)
  },
  stackList(data){
    return service.get('userStack/listIdName', {params:data})
  },
  
}

export default PromoteModelApi
